﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C7B RID: 3195
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class NpcDialogueEventParam : IMessage<NpcDialogueEventParam>, IMessage, IEquatable<NpcDialogueEventParam>, IDeepCloneable<NpcDialogueEventParam>, IBufferMessage
	{
		// Token: 0x1700283B RID: 10299
		// (get) Token: 0x06008ECD RID: 36557 RVA: 0x0017B615 File Offset: 0x00179815
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<NpcDialogueEventParam> Parser
		{
			get
			{
				return NpcDialogueEventParam._parser;
			}
		}

		// Token: 0x1700283C RID: 10300
		// (get) Token: 0x06008ECE RID: 36558 RVA: 0x0017B61C File Offset: 0x0017981C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return NpcDialogueEventParamReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700283D RID: 10301
		// (get) Token: 0x06008ECF RID: 36559 RVA: 0x0017B62E File Offset: 0x0017982E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return NpcDialogueEventParam.Descriptor;
			}
		}

		// Token: 0x06008ED0 RID: 36560 RVA: 0x0017B635 File Offset: 0x00179835
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NpcDialogueEventParam()
		{
		}

		// Token: 0x06008ED1 RID: 36561 RVA: 0x0017B63D File Offset: 0x0017983D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NpcDialogueEventParam(NpcDialogueEventParam other) : this()
		{
			this.rogueDialogueEventId_ = other.rogueDialogueEventId_;
			this.argId_ = other.argId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008ED2 RID: 36562 RVA: 0x0017B66E File Offset: 0x0017986E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NpcDialogueEventParam Clone()
		{
			return new NpcDialogueEventParam(this);
		}

		// Token: 0x1700283E RID: 10302
		// (get) Token: 0x06008ED3 RID: 36563 RVA: 0x0017B676 File Offset: 0x00179876
		// (set) Token: 0x06008ED4 RID: 36564 RVA: 0x0017B67E File Offset: 0x0017987E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RogueDialogueEventId
		{
			get
			{
				return this.rogueDialogueEventId_;
			}
			set
			{
				this.rogueDialogueEventId_ = value;
			}
		}

		// Token: 0x1700283F RID: 10303
		// (get) Token: 0x06008ED5 RID: 36565 RVA: 0x0017B687 File Offset: 0x00179887
		// (set) Token: 0x06008ED6 RID: 36566 RVA: 0x0017B68F File Offset: 0x0017988F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ArgId
		{
			get
			{
				return this.argId_;
			}
			set
			{
				this.argId_ = value;
			}
		}

		// Token: 0x06008ED7 RID: 36567 RVA: 0x0017B698 File Offset: 0x00179898
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as NpcDialogueEventParam);
		}

		// Token: 0x06008ED8 RID: 36568 RVA: 0x0017B6A6 File Offset: 0x001798A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(NpcDialogueEventParam other)
		{
			return other != null && (other == this || (this.RogueDialogueEventId == other.RogueDialogueEventId && this.ArgId == other.ArgId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008ED9 RID: 36569 RVA: 0x0017B6E4 File Offset: 0x001798E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RogueDialogueEventId != 0U)
			{
				num ^= this.RogueDialogueEventId.GetHashCode();
			}
			if (this.ArgId != 0U)
			{
				num ^= this.ArgId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008EDA RID: 36570 RVA: 0x0017B73C File Offset: 0x0017993C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008EDB RID: 36571 RVA: 0x0017B744 File Offset: 0x00179944
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008EDC RID: 36572 RVA: 0x0017B750 File Offset: 0x00179950
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RogueDialogueEventId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.RogueDialogueEventId);
			}
			if (this.ArgId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.ArgId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008EDD RID: 36573 RVA: 0x0017B7AC File Offset: 0x001799AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RogueDialogueEventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RogueDialogueEventId);
			}
			if (this.ArgId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ArgId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008EDE RID: 36574 RVA: 0x0017B804 File Offset: 0x00179A04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(NpcDialogueEventParam other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RogueDialogueEventId != 0U)
			{
				this.RogueDialogueEventId = other.RogueDialogueEventId;
			}
			if (other.ArgId != 0U)
			{
				this.ArgId = other.ArgId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008EDF RID: 36575 RVA: 0x0017B854 File Offset: 0x00179A54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008EE0 RID: 36576 RVA: 0x0017B860 File Offset: 0x00179A60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 24U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ArgId = input.ReadUInt32();
					}
				}
				else
				{
					this.RogueDialogueEventId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400367D RID: 13949
		private static readonly MessageParser<NpcDialogueEventParam> _parser = new MessageParser<NpcDialogueEventParam>(() => new NpcDialogueEventParam());

		// Token: 0x0400367E RID: 13950
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400367F RID: 13951
		public const int RogueDialogueEventIdFieldNumber = 2;

		// Token: 0x04003680 RID: 13952
		private uint rogueDialogueEventId_;

		// Token: 0x04003681 RID: 13953
		public const int ArgIdFieldNumber = 3;

		// Token: 0x04003682 RID: 13954
		private uint argId_;
	}
}
